#include "GoTo.h"

GoTo::GoTo(QDomElement gotoElement)
{
    QString isConditionalString = gotoElement.attributeNode("IsConditional").value();
    if(isConditionalString == "True")
        IsConditional = true;
    else
            IsConditional = false;

    TrialIndex = gotoElement.attributeNode("TrialIndex").value().toInt(NULL,10);
    Counter = gotoElement.attributeNode("Counter").value();
    InequalityType = Inequality::Parse(gotoElement.attributeNode("Inequality").value());
    ConditionalValue = gotoElement.attributeNode("ConditionalValue").value().toInt(NULL,10);
}
